package com.zlc.proxy;

import android.view.View;
import android.view.View.OnClickListener;

public class ProxyOnClickListaner implements OnClickListener {
	
	private OnClickListener mOnClickListener;
	
	private ViewChangeBgTool mViewChangeBgTool;
	
	public ProxyOnClickListaner(OnClickListener onClickListener,
			ViewChangeBgTool viewChangeBgTool) {
		this.mOnClickListener = onClickListener;
		this.mViewChangeBgTool = viewChangeBgTool;
	}

	@Override
	public void onClick(View v) {
		if(v.isSelected()) {
			return;
		}
		
		mOnClickListener.onClick(v);
		
		mViewChangeBgTool.changeButtonBg(v);
	}

}
